<include file="Public/head"/>
<link href="__PUBLIC__/qwadmin/css/shen/shen.css" rel="stylesheet" type="text/css" />
<style>
/*#fo input{
    width:70%;
    margin:10px ;
}*/


</style>
<body class="no-skin">
<style>
body .demo-class .layui-layer-title{background:#6495ED; color:#fff; border: none;}
body .demo-class .layui-layer-btn{border-top:1px solid #E9E7E7}
body .demo-class .layui-layer-btn a{background:#333;}
body .demo-class .layui-layer-btn .layui-layer-btn1{background:#999;}



</style>
<include file="Public/header"/>
<div class="main-container" id="main-container">
    <script type="text/javascript">
        try {
            ace.settings.check('main-container', 'fixed')
        } catch (e) {
        }
    </script>

    <include file="Public/sidebar"/>
    <div class="main-content">
        <div class="main-content-inner">
            <!-- #section:basics/content.breadcrumbs -->
            <include file="Public/breadcrumbs"/>

            <!-- /section:basics/content.breadcrumbs -->
            <div class="page-content">
                <include file="Public/set"/>
                <div style="width:40%;height:600px;border:1px solid #ccc;margin:3% 25%;box-shadow:1px 1px 15px #ccc;" id="fo">
                <div class="dao" style="background-color:#5CB85C;font-size:20px;">公告内容填写:</div>  <!-- 导航头 -->
                    <form  id="formID">
                        <div class="form-group yyy" style="margin-top:60px;">
                            <label for="exampleInputEmail1"><b style="font-size:17px;">公告标题:</b></label>
                            <input type="text" class="form-control" name="title" id="exampleInputEmail1" placeholder="请输入标题...." style="width:90%;">
                        </div>

                        
                        <div class="form-group yyy" style="margin-top:60px;">
                            <label for="exampleInputEmail1"><b style="font-size:17px;">公告类型:</b></label>
                            <select class="form-control" name="type" style="width:90%;margin-left:30px;">
                              <option value="放假通知">放假通知</option>
                              <option value="乐捐通知">乐捐通知</option>
                              <option value="紧急通知">紧急通知</option>
                              <option value="7S通知">7S通知</option>
                              <option value="赏罚通知">赏罚通知</option>
                              
                            </select>
                        </div>
                        

                        <div class="form-group yyy" style="margin-top:60px;">
                            <label for="exampleInputEmail1"><b style="font-size:17px;">通知内容:</b></label>
                            <textarea class="form-control" rows="3" name="conter" style="width:90%;margin-left:30px;" placeholder="请输入通知内容...."></textarea>
                        </div>
                        


                        <div onclick="gong()" style="width:100px;height:30px;background-color:#FFA500;border:1px solid #ccc;border-radius:50px;text-align:center;line-height:30px;color:#fff;float:left; bottom: 0;margin-left:42%;margin-top:5%;cursor:pointer;"><b>提交</b></div>
                    </form>
                </div>
                    
                    


                


            </div><!-- /.page-content -->
        </div>
    </div><!-- /.main-content -->
    <!-- <include file="Public/footer"/> -->

</div><!-- /.main-container -->

<include file="Public/footerjs"/>
<!-- inline scripts related to this page -->
<script src="__PUBLIC__/layer/layer.js"></script>
<script src="__PUBLIC__/jquery-1.7.2.min.js"></script>
<script>

function gong()
{
     $.ajax({
         type: "POST",
         url:"{:U('Tong/gong')}",
         data:$('#formID').serialize(),// 要提交的表单 
         beforeSend:function(){
                    layer.load(0, {shade: false});
                },
         success: function(msg) {
           if (msg == 1111) {
                layer.msg('发布成功!!!');
                location.href="{:U('Index/index')}";
            }else{
                layer.msg('发布失败!!!');
            }
         },
          complete: function() {
                     layer.closeAll('loading');
                }
     });
}




</script>



</body>

</html>
